package ua.eug.tst2;

import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener;

public class ChipTool extends ChipActor {
	
    public ChipTool(Chip chip) {
    	super(chip);
    	this.setTouchable(Touchable.enabled);
        addListener(new ActorGestureListener(){

        	public boolean longPress (Actor actor, float x, float y) {
				System.out.println("long pressT " + x + ", " + y + ", " + actor);
				return true;
			}

			public void pan (InputEvent event, float x, float y, float deltaX, float deltaY) {
				//event.getTarget().moveBy(deltaX, deltaY);
				System.out.println("panning T " + deltaX + ", " + deltaY + " " + event.getTarget());
			}
        });
    }

}
